package cn.edu.scau.cmi.linzhiyang.userInterface;

import cn.edu.scau.cmi.linzhiyang.interProgramming.Apple;
import cn.edu.scau.cmi.linzhiyang.interProgramming.Banana;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.ChoiceBox;
import javafx.scene.control.Label;

public class InterProgrammingController {
	@FXML
	private Label lab_3;
	@FXML
	private Button btn;
	
	@FXML
	public void evenButton() {
		Apple apple=new Apple();
		String text=apple.print();
		Banana banana=new Banana();
		text=text+'\n'+banana.print();
		lab_3.setText(text);
	}

}
